<script setup lang='ts'>
import {ref} from "vue"
defineOptions({
    name: 'addListAd'
})

const dialogBasic = ref({
  title: "新建产品",
  visible: false,
  width: 600,
  height: 300,
  showFooter: true,
  marginTop: "10vh",
})

//显示弹框
const show = (type: string, row?: any) => {  
  dialogBasic.value.visible = true
}
const onClose=()=>{
  dialogBasic.value.visible = false
}
const onConfirm=()=>{
  dialogBasic.value.visible = false
}
defineExpose({
  show
})
</script>

<template>
    <SysDialog :title="dialogBasic.title" :width="dialogBasic.width" :height="dialogBasic.height"
  :show-footer="dialogBasic.showFooter" :visible="dialogBasic.visible" :margin-top="dialogBasic.marginTop" @on-close="onClose" @on-confirm="onConfirm">
  </SysDialog>
</template>

<style lang='scss' scoped>

</style>
